<%@ Page Title="Information Management System" Language="C#" MasterPageFile="~/Main.Master"
    AutoEventWireup="true" CodeBehind="TemplateDetail.aspx.cs" Inherits="CARMS.AdminTemplate.TemplateDetail" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table border="0" cellpadding="5" cellspacing="5">
        <tr>
            <td>
                <asp:Label runat="server" Text="Template Name:" SkinID="LabelTitle"></asp:Label>
            </td>
            <td>
                <asp:TextBox runat="server" ID="txtTemplateName" MaxLength="200" Width="500px"></asp:TextBox>
                <span class="PanelRed">*</span>
                <asp:RequiredFieldValidator runat="server" ControlToValidate="txtTemplateName" ErrorMessage="Please input the template name!"
                    SetFocusOnError="true"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label runat="server" Text="Template Subject:" SkinID="LabelTitle"></asp:Label>
            </td>
            <td>
                <asp:TextBox runat="server" ID="txtTemplateSubject" MaxLength="200" Width="500px"></asp:TextBox>
                <span class="PanelRed">*</span>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtTemplateSubject"
                    ErrorMessage="Please input the template subject!" SetFocusOnError="true"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="Label1" runat="server" Text="Content:" SkinID="LabelTitle"></asp:Label>
            </td>
            <td>
                <asp:TextBox runat="server" ID="txtContent" MaxLength="200" Width="500px" Height="300px"></asp:TextBox>
                <span class="PanelRed">*</span>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtContent"
                    ErrorMessage="Please input the template content!" SetFocusOnError="true"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr style="display:none">
            <td>
                <asp:Label ID="Label3" runat="server" Text="Event Permission:" SkinID="LabelTitle"></asp:Label>
            </td>
            <td>
                <asp:CheckBoxList runat="server" ID="chkEventPermission" RepeatColumns="6" RepeatDirection="Horizontal">
                </asp:CheckBoxList>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="Label4" runat="server" Text="Relative Report Category:" SkinID="LabelTitle"></asp:Label>
            </td>
            <td>
                <asp:CheckBoxList runat="server" RepeatColumns="1" RepeatDirection="Horizontal" ID="chkReportCategoryList">
                </asp:CheckBoxList>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="Label2" runat="server" Text="Remark:" SkinID="LabelTitle"></asp:Label>
            </td>
            <td>
                <asp:TextBox runat="server" ID="txtRemark" MaxLength="200" Width="500px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td colspan="2">
                <asp:Button runat="server" ID="btnSaveDetail" OnClick="btnSaveDetail_Click" Text="Save" />
                &nbsp;&nbsp;&nbsp;&nbsp;
                <asp:Button runat="server" ID="Button1" Text="Cancel" CausesValidation="false" OnClick="btnCancel_Click" />
            </td>
        </tr>
    </table>
</asp:Content>
